package com.hundsun.cprs.yyt.service.common.service.impl;

import com.hundsun.cprs.yyt.common.base.BaseService;
import com.hundsun.cprs.yyt.service.common.service.RemoteSmsService;
import com.hundsun.cprs.sms.service.RemoteSendSmsService;
import com.hundsun.cprs.yyt.common.base.BaseService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("remoteSendSmsService")
public class RemoteSmsServiceImpl extends BaseService implements RemoteSmsService {
    protected final Log logger = LogFactory.getLog(this.getClass());

    @Autowired(required = false)
    private RemoteSendSmsService remoteSendSmsService;

    @Override
    public void toUserSendSms(String phone, String smsCode, Map<String, String> params, Long userId, String date) {
        try {
            remoteSendSmsService.toUserSendSms(phone,smsCode,params,userId,date);
        }catch (Exception e){
            logger.error("", e);
        }
    }
}
